<?php
class NewCultivatePlantAction extends SzAbstractAction {
    protected $paramTypes = array(
        SzAbstractAction::TYPE_INT,
        SzAbstractAction::TYPE_INT,
        SzAbstractAction::TYPE_INT,
        SzAbstractAction::TYPE_INT,
    );

    /**
     * @param $userId
     * @param $reqTime
     * @return SzResponse
     */
    public function execute($userId,$landId,$flowerId,$reqTime) {
        GameService::get()->validateMultiRequestTimeDelta($userId, $reqTime);
        return $this->buildResponse(
            NewCultivateService::get()->plant($userId,$landId,$flowerId,$reqTime)
        );
    }
}